package com.blockmeta.bbs.minemodule.net;

import com.blockmeta.bbs.businesslibrary.net.pojo.BaseCodeResponse;
import com.blockmeta.bbs.businesslibrary.pojo.LoginPOJO;
import com.blockmeta.bbs.minemodule.pojo.MyActiveListPOJO;

import io.reactivex.Flowable;
import okhttp3.MediaType;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * @author AirThor
 * @date 2019/12/24.
 */
public class NetApi {
    public static MediaType sMediaType = MediaType.parse("application/json; charset=utf-8");

//    public interface MyActiveList{
//        @POST("appphp/forum/activity-apply/user-acts")
//        Flowable<BaseCodeResponse<MyActiveListPOJO>> myActiveList(@Body RequestBody requestBody);
//    }

    public interface SocialBind{
        /**
         * 三方账号绑定
         * @see "https://www.tapd.cn/31959976/markdown_wikis/view/?left_tree=1#1131959976001001290"
         * @param requestBody 请求体
         * @return
         */
        @POST("account/unifySocialBind")
        Flowable<BaseCodeResponse<LoginPOJO>> bindSocial(@Body RequestBody requestBody);
    }

    public interface MyUserInfo{
        /**
         * 三方账号绑定
         * @see "https://www.tapd.cn/31959976/markdown_wikis/view/?left_tree=1#1131959976001001290"
         * @param requestBody 请求体
         * @return
         */
        @POST("account/user")
        Flowable<BaseCodeResponse<LoginPOJO>> bindSocial(@Body RequestBody requestBody);
    }

//    public interface Loginout{
//        @GET("account/clearTokenStatus")
//        Flowable<BaseCodeResponse<Object>> loginout(@Query("uid") String uid, @Query("token") String gateToken);
//    }
}
